#ifndef __JIUYUAN_H
#define __JIUYUAN_H

#ifdef __cplusplus
extern "C"{
#endif

#include <rtthread.h>
#include "rttypes.h"

#pragma pack(1)
typedef struct 
{
    rt_uint8_t heaader;
    rt_uint8_t cmd;
    rt_uint8_t redblueid;
    rt_int16_t redblue_x;
    rt_int16_t redblue_y;
    rt_uint8_t yellowid;
    rt_int16_t yellow_x;
    rt_int16_t yellow_y;
    rt_uint8_t blackid;
    rt_int16_t black_x;
    rt_int16_t black_y;
    rt_uint8_t tail;
}JiuYuan_s;
#pragma pack()
extern JiuYuan_s JiuYuan;

void send_jiuyuan(rt_uint8_t data);

#ifdef __cplusplus
}
#endif

#endif // RGB_H